import { NodeConfig } from "@antv/g6"

// 处理文本
export function nodeTextSolve(node: NodeConfig) {
  node.labelCfg = {
    position: 'center',
    maxLength: 4,
    style: {
      fill: '#ffffff',
      fontSize: node.type === 'country' ? 20 : 16
    }
  }
}